const mongoose = require("mongoose");
//1.连接本地数据库
var mongodb = mongoose.createConnection( 'mongodb://127.0.0.1:27017/movies', {useNewUrlParser: true});
var Schema = mongoose.Schema;

module.exports = {
    mongodb,
    Schema
};